package com.bjb.vr.common.dto;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 客户内容授权表
 * @TableName res_cus_content_authority
 */
@TableName(value ="res_cus_content_authority")
@Data
public class ResCusContentAuthority implements Serializable {
    /**
     * 客户内容授权主表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 数据ID用于同步
     */
    @TableField(value = "data_id", fill = FieldFill.INSERT)
    private Long dataId;

    /**
     * 课程开始日期
     */
    @TableField(value = "cont_valid_start_date")
    private LocalDate contValidStartDate;

    /**
     * 课程结束日期
     */
    @TableField(value = "cont_valid_end_date")
    private LocalDate contValidEndDate;

    /**
     * 有效时长
     */
    @TableField(value = "cont_valid_days")
    private Integer contValidDays;

    /**
     * 设备组id
     */
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 资源包id数组，以逗号分隔
     */
    @TableField(value = "res_bundle_ids")
    private String resBundleIds;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}